function create(currentPage, lastPage, url, rows, total) {
    var $page = $('#page');
    $page.append('<a class="first">第一页</a>');
    $('.first').attr('href', url + 'page=1&rows=' + rows);
    $page.append('<a class="prev">上一页</a>');
    var prev = currentPage - 1 > 0 ? currentPage - 1 : currentPage;
    $('.prev').attr('href', url + 'page=' + prev + '&rows=' + rows);
    if (currentPage < 4) {
        for (var i = 1; i <= 5; i++) {
            if (i < currentPage) {
                $page.append('<a class="num" href="'+url + 'page=' + i + '&rows=' + rows+'">' + i + '</a>');
            } else if (i == currentPage) {
                $page.append('<span class="current">' + i + '</span>');
            } else if (i <= lastPage && i < 6) {
                $page.append('<a class="num" href="'+url + 'page=' + i + '&rows=' + rows+'">' + i + '</a>');
            } else {
                break;
            }
        }
    } else if (lastPage - currentPage > 2) {
        for (var i = currentPage - 2; i <= currentPage + 2; i++) {
            if (i == currentPage) {
                $page.append('<span class="current">' + i + '</span>');
            } else {
                $page.append('<a class="num" href="'+url + 'page=' + i + '&rows=' + rows+'">' + i + '</a>');
            }
        }
    } else {
        for (var i = lastPage - 5; i <= lastPage; i++) {
            if (i > 0) {
                if (i == currentPage) {
                    $page.append('<span class="current">' + i + '</span>');
                } else {
                    $page.append('<a class="num" href="'+url + 'page=' + i + '&rows=' + rows+'">' + i + '</a>');
                }
            }
        }
    }
    $page.append('<a class="next">下一页</a>');
    var next = currentPage + 1 <= lastPage ? currentPage + 1 : currentPage;
    $('.next').attr('href', url + 'page=' + next + '&rows=' + rows);
    $page.append('<a class="end">最后一页</a>');
    $('.end').attr('href', url + 'page=' + lastPage + '&rows=' + rows);
    $page.append('<span class="rows">共 '+total+' 条记录</span>');
}